
package com.wyzz.hr.pojo;

import java.util.*;

import com.wyzz.hr.base.ComonBeans;
import com.wyzz.hr.pojo.base.BaseInmatchModel;


public class InmatchModel extends BaseInmatchModel {

	public InmatchModel() {
	}

	public InmatchModel(String immId) {
		super(immId);
	}

	public InmatchModel(String immId, Iodef immIo, String immName,
			String immInputType, Integer immNoTitle, Integer immImportMode,
			Integer immDefault, Date immCreateTime, Date immLastChangeTime,
			String immLastChangeBy, String immCreateBy) {
		super(immId, immIo, immName, immInputType, immNoTitle, immImportMode,
				immDefault, immCreateTime, immLastChangeTime, immLastChangeBy,
				immCreateBy);
	}

	public void setImmNoTitle(Integer immNoTitle) {
		super.setImmNoTitle(immNoTitle);
		if (immNoTitle != null)
			immNoTitleMean = ComonBeans.getParameterValue("noOrYes",
					new String[] { immNoTitle.toString() });
		else
			immNoTitleMean = null;
	}

	public void setImmInputType(String immInputType) {
		super.setImmInputType(immInputType);
		if (immInputType != null)
			immInputTypeMean = ComonBeans.getParameterValue(
					PROP_IMM_INPUT_TYPE, new String[] { immInputType });
		else
			immInputTypeMean = null;
	}

	public void setImmImportMode(Integer immImportMode) {
		super.setImmImportMode(immImportMode);
		if (immImportMode != null)
			immImportModeMean = ComonBeans.getParameterValue(
					PROP_IMM_IMPORT_MODE, new String[] { immImportMode
							.toString() });
		else
			immImportModeMean = null;
	}

	public void setAllMaps() {
		immInputTypeMap = ComonBeans.getValuesToMap(PROP_IMM_INPUT_TYPE,
				new boolean[0]);
		immImportModeMap = ComonBeans.getValuesToMap(PROP_IMM_IMPORT_MODE,
				new boolean[0]);
		immNoTitleMap = ComonBeans.getValuesToMap("noOrYes", new boolean[0]);
	}

	public String getImmNoTitleMean() {
		return immNoTitleMean;
	}

	public String getImmInputTypeMean() {
		return immInputTypeMean;
	}

	public String getImmImportModeMean() {
		return immImportModeMean;
	}

	public Map getImmImportModeMap() {
		return immImportModeMap;
	}

	public Map getImmInputTypeMap() {
		return immInputTypeMap;
	}

	public Map getImmNoTitleMap() {
		return immNoTitleMap;
	}

	public List getImList() {
		return imList;
	}

	public void setImList(List imList) {
		this.imList = imList;
	}

	private static final long serialVersionUID = 1L;
	private String immNoTitleMean;
	private String immInputTypeMean;
	private String immImportModeMean;
	private Map immImportModeMap;
	private Map immInputTypeMap;
	private Map immNoTitleMap;
	private List imList;
}
